<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import=" com.six.entity.Users" %>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="UTF-8">
<title>购物车</title>
<link rel="stylesheet" href="layui/css/layui.css" />
<script type="text/javascript" src="layui/layui.js"></script>
</head>
<body>
	<jsp:include page="/header"></jsp:include>
	<!--=====================
    Breadcrumb Aera Start
    =========================-->
	<div class="breadcrumbs_area">
		<div class="container">
			<div class="row">
				<div class="col-12">
					<div class="breadcrumb_content">
						<ul>
							<li>
								<h1>
									<a href="indexTwo">首页</a>
								</h1>
							</li>
							<li>心愿单</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--=====================
    Breadcrumb Aera End
    =========================--
    <%
                        HttpSession s=request.getSession();
                        if(s.getAttribute("users_session")==null){
                        	response.sendRedirect(request.getContextPath()+"/login_car.jsp");
                        }else{
                        	Users u=(Users)s.getAttribute("users_session");
                        %>
		<!--======================
    wishlist area Start
    ==========================-->
	<div class="wishlist-area">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<form action="#" class="layui-form" onsubmit="false">
						<!-- Wishlist Title Start -->
						<div class="wishlist-title">
							<h5 class="last-title mt-50 mb-20">心愿单</h5>
						</div>
						<!-- Wishlist Title End -->
						<!-- Wishlist Table Area Start -->
						<div class="table-desc wishlist-margin">
							<div class="wishlist-page cart-page table-responsive">
								<table>
									<thead>
										<tr>
											<th class="product-image">图片</th>
											<th class="product-name">商品名称</th>
											<th class="product-price">价格</th>
											<th class="product-stock">库存</th>
											<th class="product-remove">删除</th>
											<th class="product-cart">加入购物车</th>
										</tr>
									</thead>
									<tbody>
										<c:forEach items="${wish }" var="w">
											<tr>
												<td class="product-image"><a href="${w.PskipUrl }"><img
														style="width: 100px; height: 100px;" src="${w.Purl }"
														alt=""></a></td>
												<td class="product-name"><a href="${w.PskipUrl }">${w.Pname }</a></td>
												<td class="product-price">${w.Pprice }</td>
												<td class="product-stock">${w.Srepertory }</td>
												<td class="product-remove"><a href="wishlist_del?Coid=${w.Coid }"><i  class="fa fa-trash-o" ></i></a></td>
												<td hidden="hidden"><input required="" autocomplete="off" class="layui-input" type="text" lay-verify="required" value="${w.Coid }" name="Coid" id="Coid"> </td>
												<td hidden="hidden"><input required="" autocomplete="off" class="layui-input" type="text" lay-verify="required" value="${w.Pid }" name="Pid" id="Pid"></td>
												<td hidden="hidden"><input required="" autocomplete="off"  class="layui-input" type="text" lay-verify="required" value="${w.Sid }" name="Sid" id="Sid"></td>
												<td hidden="hidden"><input required="" hidden="hidden" autocomplete="off" class="layui-input" type="text" lay-verify="required" value="${w.Pprice }" name="Pprice" id="Pprice"  ></td>
												<td class="product-cart"><a href="shopping-cart_add_w?Sid=${w.Sid }&Pid=${w.Pid }&Pprice=${w.Pprice}"><i style="font-size: 20px;" class="zmdi zmdi-shopping-cart-plus zmdi-hc-fw"></i></a></td>
											</tr>
										</c:forEach>
									</tbody>
								</table>
							</div>
						</div>
						<!-- Wishlist Table Area End -->
					</form>
				</div>
			</div>
		</div>
	</div>
	<!--======================
    wishlist area Start
    ==========================-->
    <%} %>
	<!--===================
     footer area start 
    ===================-->
	<footer class="mt-30">
		<!-- Newslatter area start -->
		<div class="newsletter-group">
			<div class="container">
				<div class="row align-items-center">
					<div class="col-lg-6 col-12">
						<div class="newsletter-inner d-flex align-items-center">
							<i class="fa fa-envelope-open-o"></i>
							<div class="newsletter-title">
								<h1 class="sign-title">注册我们的通讯</h1>
								<p>获取有关我们最新商店和特惠信息的电子邮件更新。</p>
							</div>
						</div>
					</div>
					<div class="col-lg-6 col-12">
						<div class="newsletter-box">
							<form id="mc-form" class="mc-form">
								<input type="email" id="mc-email" class="email-box"
									placeholder="输入你的电子邮箱" name="EMAIL">
								<button id="mc-submit" class="newsletter-btn" type="submit">订阅</button>
							</form>
							<!-- mailchimp-alerts Start -->
							<div class="mailchimp-alerts text-centre">
								<div class="mailchimp-submitting"></div>
								<!-- mailchimp-submitting end -->
								<div class="mailchimp-success text-success"></div>
								<!-- mailchimp-success end -->
								<div class="mailchimp-error text-danger"></div>
								<!-- mailchimp-error end -->
							</div>
							<!-- mailchimp-alerts end -->
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- Newslatter area End -->
		<!-- Footer Top Start -->
		<div class="footer-top mt-50 mb-40">
			<div class="container">
				<div class="row">
					<div class="col-lg-4">
						<div class="footer-single-widget">
							<div class="footer-logo mb-40">
								<a href="index"><img
									src="assets/images/logo/pos-circle-logo.jpg" alt=""></a>
							</div>
							<div class="widget-body">
								<div class="widget-address mt-30 mb-20">
									<p>
										<strong>地址:</strong>新乡市，红旗区，新乡职业技术学院
									</p>
									<p>
										<strong>联系电话:</strong> (800) 123 456 - (800) 123 456.
									</p>
									<p>
										<strong>电子邮箱:</strong> support@circleshop.com
									</p>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-8">
						<div class="row">
							<div class="col-lg-3 col-md-3 col-6">
								<div class="widgets_container">
									<h6>信息</h6>
									<div class="footer_menu">
										<ul>
											<li><a href="#">隐私政策</a></li>
											<li><a href="#">条款及细则</a></li>
										</ul>
									</div>
								</div>
							</div>
							<div class="col-lg-3 col-md-3 col-6">
								<div class="widgets_container">
									<h6>我的账户</h6>
									<div class="footer_menu">
										<ul>
											<li><a href="#">我的帐户</a></li>
											<li><a href="#">心愿单</a></li>
										</ul>
									</div>
								</div>
							</div>
							<div class="col-lg-3 col-md-3 col-6">
								<div class="widgets_container">
									<h6>快速找到</h6>
									<div class="footer_menu">
										<ul>
											<li><a href="#">历史悠久</a></li>
											<li><a href="#">新闻快报</a></li>
										</ul>
									</div>
								</div>
							</div>
							<div class="col-lg-3 col-md-3 col-6">
								<div class="widgets_container">
									<h6>客户服务</h6>
									<div class="footer_menu">
										<ul>
											<li><a href="#">网站地图</a></li>
											<li><a href="#">联系我们</a></li>
										</ul>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- Footer Top End -->
	</footer>
	<!--===================
     footer area end 
    ===================-->


	<!-- Use the minified version files listed below for better performance and remove the files listed above -->
	<script src="assets/js/vendor/vendor.min.js"></script>
	<script src="assets/js/plugins/plugins.min.js"></script>

	<!-- Main JS -->
	<script src="assets/js/main.js"></script>
</body>
</html>